<template>
  <div class="content-card">
    <div class="title">
      <a-icon type="tags"></a-icon>
      <span>{{ "专题入口" }}</span>
    </div>
    <div class="body">
      <div class="child-item" @click="goToPage('develop')">
        <img src="@/assets/img/overview/2-1.png" alt="2-1" />
        <span>{{ "数据开发利用" }}</span>
      </div>
      <div class="child-item" @click="goToPage('quality')">
        <img src="@/assets/img/overview/2-2.png" alt="2-2" />
        <span>{{ "数据质检" }}</span>
      </div>
      <div class="child-item" @click="goToPage('assemble')">
        <img src="@/assets/img/overview/2-3.png" alt="2-3" />
        <span>{{ "数据汇集" }}</span>
      </div>
      <div class="child-item" @click="goToPage('directories')">
        <img src="@/assets/img/overview/2-4.png" alt="2-4" />
        <span>{{ "目录编辑" }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "o2-box",
  methods: {
    goToPage(name) {
      this.$router.push({ name });
    },
  },
};
</script>

<style lang="less" scoped>
.content-card {
  height: 100%;
  .title {
    display: flex;
    align-items: center;
    padding: 10px 0;
    background: linear-gradient(to right, #dee9ff, #ffffff);
    i {
      color: #6989c6;
      margin: 0 15px;
      font-size: 18px;
    }
    span {
      font-size: 16px;
      font-weight: 500;
    }
  }
  .body {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    padding: 10px 5px;
    .child-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      img {
        width: 50px;
        height: 50px;
        margin: 15px;
      }
      span {
        font-family: PingFangSC, sans-serif;
        font-size: 16px;
      }
      &:nth-child(1) {
        border-right: 1px dashed #eee;
      }
      &:nth-child(2) {
        border-right: 1px dashed #eee;
      }
      &:nth-child(3) {
        //border: 1px dashed #eee;
      }
      &:nth-child(4) {
        //border-right: 1px dashed #eee;
      }
    }
  }
}
</style>
